package cn.driver.manager.service;

import cn.driver.common.pojo.Admin;
import cn.driver.manager.utils.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdService {

    Admin getAdmin(String adminName, String password);

    List<Admin> getAdminList(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("prm") String prm);

    int selectAdmin(String prm);

    Admin selectOne(int account);

    int addAdmin(Admin admin);

    int updateAdmin(Admin admin);

    int delete(String account);

    Pager<Admin> pageInfo(int pageNo, int pageSize, String prm);
}
